package com.itheima.controller;

import com.itheima.dto.OmsCompanyAddressDto;
import com.itheima.service.OmsCompanyAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 芝士雪豹
 * @create 2022/10/13/19:18
 */
@RestController
@RequestMapping("/companyAddress")
public class OmsCompanyAddressController {
    @Autowired
    private OmsCompanyAddressService omsCompanyAddressService;

    @GetMapping("list")
    public OmsCompanyAddressDto findAllOrder() {
        OmsCompanyAddressDto dto = omsCompanyAddressService.findAllOrder();
        return dto;
    }


}
